<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <span v-if="type==='A'">我是A</span>
    <span v-else-if="type==='B'">我是B</span>
    <span v-else-if="type==='C'">我是C</span>
    <span v-else>我是未知</span>
</div>
<script>
    var vue = new Vue({
        el: "#app",
        data: {
            type: "A"
        }
    });
</script>
</body>
</html>
